package com.hyt.it.ogt.kq.service.bm.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 订单实体
 * 
 * @author wangt
 * @Description:
 * @date: 2020年8月31日 上午11:00:01
 * @version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bm_order_details")
@ApiModel(value = "OrderDetail", description = "订单详情")
public class OrderDetail extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "订单号")
	private String bmOrderId;

	@ApiModelProperty(value = "业务类型（1，报名费，2教材，3其它）")
	private String businessType;

	@ApiModelProperty(value = "优惠活动id")
	private String couponActivityId;

	@ApiModelProperty(value = "是否使用优惠 Y/N")
	private String isCoupon;

	@ApiModelProperty(value = "支付方式;L:line线上支付,O:offLine线下支付")
	private String payType;

	@ApiModelProperty(value = "订单总额单位,元")
	private BigDecimal orderPrice;

	@ApiModelProperty(value = "订单实际需要支付的总额")
	private BigDecimal actrualPrice;

	@ApiModelProperty(value = "订单优惠的总额")
	private BigDecimal couponPrice;

	@ApiModelProperty(value = "是否团体类型，1：为团体订单")
	private String isGroup;

}
